package com.springboot.auth.authorization.entity.param;

import com.springboot.auth.authorization.entity.po.OperationLog;
import com.springboot.cloud.common.web.entity.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Past;
import java.util.Date;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OperationLogQueryParam extends BaseParam<OperationLog> {
    private String title;
    private int businessType;
    private String method;
    private String requestMethod;
    private int operatorType;
    private String operName;
    private String deptName;
    private String operUrl;
    private String operIp;
    private String operLocation;
    private String operParam;
    private String jsonResult;
    private int status;
    private String errorMsg;
    private Data operTime;
    private String deleted;
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @Past(message = "查询开始时间必须小于当前日期")
    @ApiModelProperty(value = "查询开始时间")
    private Date createdTimeStart;
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @Past(message = "查询结束时间必须小于当前日期")
    @ApiModelProperty(value = "查询结束时间")
    private Date createdTimeEnd;
}
